import pygame
import os
from pygame.locals import *
from defs import *

class TimerScoreboard(pygame.sprite.Sprite):

   currentTime = TIMER_LIMIT
   currentRound = 1
   
   def __init__(self):
      pygame.sprite.Sprite.__init__(self)
      self.font = pygame.font.Font(None, FONT_SIZE_2)
   
   def update(self):
      stats_str = 'Round ' + str(self.currentRound) + ' | Time: ' + str(self.currentTime)
      self.image = self.font.render(stats_str, True, (255, 255, 255))
      self.rect = self.image.get_rect()
      self.rect.top = 10
      self.rect.centerx = SCREENRECT.width/2